<!DOCTYPE html>
<html lang="en" xmlns:th="https://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>用户修改页</title>
</head>
<body>
<form th:action="@{/update}" method="get">
    <input type="hidden" name="id" th:value="${user.id}" />
    <table id="userTab" style="border-collapse: collapse">
        <tr>
            <th>姓名：</th>
            <td>
                <input name="name" th:value="${user.name}" />
            </td>
        </tr>
        <tr>
            <th>年龄：</th>
            <td>
                <input name="age" th:value="${user.age}" />
            </td>
        </tr>
        <tr>
            <th>生日：</th>
            <td>
                <input type="date" name="birthday" th:value="${#dates.format(user.birthday, 'yyyy-MM-dd')}"/>
            </td>
        </tr>
        <tr>
            <td></td>
            <td>
                <input type="submit" value="Update" />
            </td>
        </tr>
    </table>
</form>
</body>
</html>